﻿using Ninject;
using WPF_CAD.ViewModel;

namespace WPF_CAD.Common
{
    public class ViewModelLocator
    {
        public MainWindowViewModel MainWindowViewModel 
        {
            get { return Kernel.Get<MainWindowViewModel>(); }
        }

        private static readonly IKernel Kernel;

        static ViewModelLocator()
        {
            Kernel = new StandardKernel(new CadModule());
        }
    }
}
